Fix save/restore for HVM domains with viridian=1
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 25 Nov 2011 15:30:41 +0000 (15:30 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 25 Nov 2011 15:30:41 +0000 (15:30 +0000)
commit26ddefddf050f692444bde22226f9726556c5a20
tree23ec0efce002770e08d3d6ec6b47de7707c188f6
parent5e0f79980e4ace10de74923f604ba523ede0ef90
Fix save/restore for HVM domains with viridian=1

xc_domain_save/restore currently pay no attention to
HVM_PARAM_VIRIDIAN which results in an HVM domain running a recent
version on Windows (post-Vista) locking up on a domain restore due to
EOIs (done via a viridian MSR write) being silently dropped.  This
patch adds an extra save entry for the viridian parameter and also
adds code in the viridian kernel module to catch attempted use of
viridian functionality when the HVM parameter has not been set.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
tools/libxc/xc_domain_restore.c
tools/libxc/xc_domain_save.c
tools/libxc/xg_save_restore.h
xen/arch/x86/hvm/viridian.c